package com.sjy.system.domain;

import com.sjy.common.annotation.Excel;
import com.sjy.common.core.domain.BaseEntity;
import com.sjy.common.core.domain.entity.SysDept;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 树形数据存储对象 sys_tree
 * 
 * @author lzm
 * @date 2023-06-19
 */
@Data
public class SysTree extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 树形关系表主键 */
    @Excel(name = "树形关系表主键")
    private Long treeId;

    /** 祖级列表 */
    private String ancestors;

    /** 当前节点名称 */
    @Excel(name = "当前节点名称")
    private String treeName;

    /** 父节点id */
    @Excel(name = "父节点id")
    private Long parentId;

    /** 父节点名称 */
    private String parentName;

    /** 节点类型 */
    @Excel(name = "节点类型")
    private String treeType;

    /** 子节点 */
    private List<SysTree> children = new ArrayList<SysTree>();
}
